﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Vecka1.Model
{
    class Item
    {
        Vector2 m_speed = new Vector2(5f, 0);
        Vector2 m_position = new Vector2(0f, 6);



        internal void Update(float a_elapsedTime)
        {
            Vector2 gravityAcceleration = new Vector2(0.0f, -9.82f);

            m_position = m_position + m_speed * a_elapsedTime; ;

            
        }

        internal Vector2 getPosition()
        {
            return m_position;
        }

        internal void setPosition(float a_x, float a_y)
        {
            m_position.X = a_x;
            m_position.Y = a_y;
        }

        internal Vector2 getSpeed()
        {
            return m_speed;
        }

        internal void setSpeed(float a_x, float a_y)
        {
            m_speed.X = a_x;
            m_speed.Y = a_y;
        }
    }
}
